<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>02-flex布局</title>
    <style>
        .box {
            display: flex;
            flex-wrap: wrap;
            background-color: yellowgreen;
            /* justify-content: space-around; */
            justify-content: space-between;
            height: 400px;
            align-items: center;
        }

        .inner {
            width: 200px;
            height: 200px;
            background: tomato;
            border: 1px solid #000;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>

    </div>
</body>

</html>